<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\Admin */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Admins', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="admin-view x_panel">

    <div class="x_title">
        <h1><?= Html::encode($this->title) ?></h1>
    </div>

    <div class="x_content">
        <p>
            <?= Html::a('Update', ['修改', 'id' => $model->id], ['class' =>
            'btn btn-primary']) ?>
            <?= Html::a('Delete', ['删除', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
            'confirm' => 'Are you sure you want to delete this item?',
            'method' => 'post',
            ],
            ]) ?>
        </p>

        <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
                    'id',
            'username',
//            'auth_key',
//            'password_hash',
//            'password_reset_token',
//            'email:email',
            'status:userStatus',
            'created_at:dateTime',
            'updated_at:dateTime',
        ],
        ]) ?>
    </div>

</div>
